<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<script type="text/javascript">
	window.oldalert = window.alert;
	window.alert = function(content) {
		$("#windowAlertContent").html(content);
		$("#windowAlert").click();
	};
</script>
<!-- Small modal -->
<button id="windowAlert" type="button" class="btn btn-primary"
	data-toggle="modal" data-target=".bs-example-modal-sm" style="display:none">Small
	modal</button>

<div class="modal fade bs-example-modal-sm in" tabindex="-1"
	role="dialog" aria-labelledby="mySmallModalLabel">
	<div class="modal-dialog modal-sm">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal"
					aria-label="Close">
					<span aria-hidden="true">×</span>
				</button>
				<h4 class="modal-title" id="mySmallModalLabel">页面消息</h4>
			</div>
			<div id="windowAlertContent" class="modal-body">...</div>
		</div>
	</div>
</div>